package com.yonyou.cyxdms.basedata.service.repository.questionaire;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yonyou.cyx.framework.dao.base.SuperMapper;
import com.yonyou.cyxdms.basedata.service.dto.questionaire.QueryAnswerDTO;
import com.yonyou.cyxdms.basedata.service.entity.questionaire.AnswerGroupPO;
import com.yonyou.cyxdms.basedata.service.vo.questionaire.AnswerGroupVO;
import com.yonyou.cyxdms.basedata.service.vo.questionaire.AnswerVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 答案组 Mapper 接口
 * </p>
 *
 * @author renwd
 * @since 2019-09-19
 */
public interface AnswerGroupMapper extends SuperMapper<AnswerGroupPO> {

    /**
     * 答案信息查询
     *
     * @param page page
     * @param queryAnswerDTO queryAnswerDTO
     * @return java.util.List<com.yonyou.cyxdms.basedata.service.vo.questionaire.AnswerGroupVO>
     * @author renwd
     * @since 2019/9/19
     */
    List<AnswerGroupVO> listAnswerGroupInfo(Page<AnswerGroupVO> page, @Param("params") QueryAnswerDTO queryAnswerDTO);

    /**
     * 根据答案组id查询答案信息
     *
     * @param page page
     * @param answerGroupId 答案组id
     * @return java.util.List<com.yonyou.cyxdms.basedata.service.vo.questionaire.AnswerVO>
     * @author renwd
     * @since 2019/9/19
     */
    List<AnswerVO> listAnswerByGroupId(Page<AnswerVO> page, @Param("answerGroupId") Long answerGroupId);

}
